<!DOCTYPE html>
<!--注意修改的内容 xmlns:xxxxxxx-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>"测试图片上传"</title>
</head>
<body>

<h1>图片上传</h1>

<form action="" method="post" enctype="multipart/form-data">

    <input type="file" name="userpic"/>
    <input type="submit" value="图片上传">

</form>

</body>
</html>